<%@ page language="java"%>
<html>
<head><title></title>
</head>
<body>
<center>
<%
       try
       {
		if(session.getAttribute("logged_in") == "true")
		{
			out.println("<p><h2>Logged In</p><h2>");
			if(session.getAttribute("user_level") == "administrator")
			{
				out.println("<FORM ACTION=add_screen_exec.jsp METHOD=POST>Domain Name:<input type=text name=domain_name><br>Location:<input type=text name=location><br>Username:<input type=text name=username><br>Password:<input type=text name=password><br>OS:<input type=text name=os_type><br><input type=\"submit\" value=Add Screen><br></FORM>");	
			}
			else
			{
				out.println("Only administrators can add a screen<br>");
			}
		}
		else
		{
			out.println("Not Logged In");
		}
       }
       catch(Exception e)
       {
           out.println(e);
       }	
%>
<a href="menu.jsp">Main Menu</a>
</center>
</body>
</table>
</center>
</div>


</body>
</html>
